package de.breitbeil.jbooking.richclient.form.binding.comboboxrenderer;

import de.breitbeil.jbooking.domain.Person;

public class PersonRenderer extends AbstractComboboxRenderer {

    @Override
    public String getString(Object item) {
        if(item == null) {
            return " ";
        }
        
        Person person = (Person) item;
        String lastname = person.getLastname();
        String firstname = person.getFirstname();
        return lastname + " " + firstname;
    }
}
